//
//  MoboThumbnail.h
//  MoboPlayer
//
//  Created by limingxi on 2016/12/14.
//  Copyright © 2016年 lmx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MoboPlayerProtocol.h"


@interface Audioinfo : NSObject
{
 NSString* Title;
 NSString* Language;
 NSString* CodecName;
 int Sample_rate    ; //采样率
}
//-(void) setValue:(id)value forKey:(NSString *)key;
-(void) setaudio:(NSString *)Title Language:(NSString*)language CodecName:(NSString*)codecname sample_rate:(int)sample_rate;
@end

@interface Subtitleinfo : NSObject
{
     NSString* Title;
     NSString* Language;
     NSString* CodecName;
     int Sample_rate    ; //采样率
}
-(void) setsubtitle:(NSString *)Title Language:(NSString*)language CodecName:(NSString*)codecname sample_rate:(int)sample_rate;

@end

@interface MoboThumbnail : NSObject


- (int) cmp_save_video_shot:(NSString *) filename
                          //  shot_file_name: (NSString *) shot_file_name
                            gen_time: (int) gen_time
                            gen_width: (int) gen_width
                            gen_height: (int) gen_height;
                           // gen_amount:(int) gen_amount;

//-(UIImage *) generateThumbnail:(NSString *)file atPath:(NSString *)pngSavePath atTime:(int)time withWidth:(int)width height:(int)height;

//-(int) get_resolution: (AVFormatContext *) pFormatCtx
//            pCodecCtx: (AVCodecContext *) pCodecCtx
//               pFrame: (AVFrame *) pFrame
//               pCodec: (AVCodec *) pCodec
//          videoStream: (int) videoStream;


//@property (readwrite,nonatomic) NSInteger selectedSubtitleStream;
//@property (readwrite,nonatomic) char *audioTitle ;
//@property (readwrite,nonatomic) char *audioLanguage ;
//@property (readwrite,nonatomic) char *audioCodecName;



+(MoboThumbnail *)MoboThumbnailonce;

@property (readwrite,nonatomic) int64_t  file_duration; //文件时长 (毫秒)
@property (readwrite,nonatomic) NSMutableArray * Audioinfos; //音频相关
@property (readwrite,nonatomic) int audio_channels;
@property (readwrite,nonatomic) NSMutableArray *subtitleinfos;
@property (readwrite,nonatomic) int Video_width;  //宽
@property (readwrite,nonatomic) int Video_height; //高
@property (readwrite,nonatomic) int Video_bitrate; //比特率
@property (readwrite,nonatomic) const char * Video_codecname; //视频解码器名称
@property (readwrite,nonatomic) int64_t File_size; //文件大小（kb）
@property (readwrite,nonatomic) UIImage *image ;
//@property (readwrite,nonatomic) BOOL  isaudiofile ;
@end
